/*
* @Author: Marte
* @Date:   2016-10-24 11:41:54
* @Last Modified by:   Marte
* @Last Modified time: 2016-10-24 12:05:16
*/

'use strict';

var sequelizeService = require('../utils/sequelizeService');

sequelizeService.sequelize
  .sync()
  .then(function(){
        var model = sequelizeService.models.Remark;

        var arr=[{
            remark:'非证件用相片'
        },{
            remark:'请上传近期免冠证照原图'
        },{
            remark:'取景范围过小'
        },{
            remark:'取景范围过大'
        },{
            remark:'背景不符合要求'
        },{
            remark:'曝光过度'
        },{
            remark:'曝光不足'
        },{
            remark:'曝光不均匀'
        },{
            remark:'图像灰朦'
        },{
            remark:'图像有阴影'
        }
        ];

        model
      .bulkCreate(arr,{individualHooks:true})
      .then(function() {
        console.log('新增 %d 条记录', arr.length);
      })
      .error(function(err) {
        console.log(err);
      });
  });